package kontlin.zoufeng.com.kotlin

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.util.Log

class Collection : AppCompatActivity(){
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        test1()
    }

    /**
     * 数组
     */
    fun test1(){
//        1.定义
        var array1 = arrayOf("ssss","fffff","bbbb")
        var array2 = arrayOf("ssss",1111,"bbbb")
        var array3 = Array<Any>(5,{a:Int -> ""})
        array3.set(0,"0www")
        array3.set(3,2)

        Log.e("kotlin", "lambda${array3.joinToString()}}")


    }

    /**
     *
     */


    /**
     *
     */


    /**
     *
     */




}
